//
//  BiliRecommend.swift
//  Landmarks
//
//  Created by 温哲 on 2021/2/10.
//

import SwiftUI

struct BiliRecommend: View {
    var body: some View {
        VStack(alignment: .leading) {
            Text("推荐服务")
                .fontWeight(.medium)
                .padding(.vertical, 20.0)
            BiliGroup(models: [CommonModel(id: 0, name: "我的课程", image: "msg_1", tipsNum: 0),
                               CommonModel(id: 1, name: "看视频免流量", image: "msg_2", tipsNum: 10),
                               CommonModel(id: 2, name: "个性装扮", image: "msg_3", tipsNum: 3),
                               CommonModel(id: 4, name: "邀好友赚红包", image: "msg_4", tipsNum: 0)])
            BiliGroup(models: [CommonModel(id: 5, name: "游戏中心", image: "msg_5", tipsNum: 3),
                               CommonModel(id: 6, name: "我的钱包", image: "msg_1", tipsNum: 0),
                               CommonModel(id: 7, name: "会员购中心", image: "msg_2", tipsNum: 3),
                               CommonModel(id: 8, name: "直播中心", image: "msg_3", tipsNum: 6)])
            BiliGroup(models: [CommonModel(id: 9, name: "创作学院", image: "msg_4", tipsNum: 3),
                               CommonModel(id: 10, name: "反馈论坛", image: "msg_5", tipsNum: 0), CommonModel(id: 11, name: "", image: "", tipsNum: 0), CommonModel(id: 12, name: "", image: "", tipsNum: 0)])
        }
       
    }
}

struct BiliRecommend_Previews: PreviewProvider {
    static var previews: some View {
        BiliRecommend()
    }
}
